<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        .box{
            width: 800px;
            margin: auto;
            padding: 20px;
            border: 1px solid black;
        }
        .content{
            margin: 20px 0px;
        }
        .word{
            border: 1px dashed black;
            padding: 10px;

        }
        .infor{
            height: 30px;
            line-height: 30px;
            border-bottom: 1px dashed;
            display: flex;
            justify-content: space-between;

        }
        .word-text a{
            width: 40px;
            display: block;
            margin-left: auto;

        }
        .text textarea{
            width: 100%;
            height: 200px;
            resize: none;
        }
        .text{
            text-align: right;
        }

    </style>
</head>
<body>
    <div class="box">
        <h1>留言板</h1>
        <!-- 留言盒子 -->
        <div class="content">
            <div class="word">
                <div class="infor">
                    <span>张三1</span>
                    <span>2023-10-30 20:40:34</span>
                </div>
                <div class="word-text">
                    <p>留言内容</p>
                    <a href="#">删除</a>
                </div>
            </div>
            <div class="word">
                <div class="infor">
                    <span>张三2</span>
                    <span>2023-10-30 20:40:34</span>
                </div>
                <div class="word-text">
                    <p>留言内容</p>
                    <a href="#">删除</a>
                </div>
            </div>
            <div class="word">
                <div class="infor">
                    <span>张三3</span>
                    <span>2023-10-30 20:40:34</span>
                </div>
                <div class="word-text">
                    <p>留言内容</p>
                    <a href="#">删除</a>
                </div>
            </div>

        </div>
        <!-- 留言框 -->
        <div class="text">
            <textarea name="" id="" cols="30" rows="10"></textarea>
            <button>留言</button>
        </div>
    </div>
    

    <script src="./index.js"></script>
</body>
</html>